package com.example.testretrofit;

import lombok.Data;

/**
 * 工业码平台统一返回结果
 *
 * @author : jamesfu
 * @date : 18/4/2022 11:37
 */
@Data
public class GymyResultDto<T> {
    private Integer code;

    private String message;

    private Boolean success;

    private T data;

    public boolean isError() {
        if (code == null) {
            return true;
        }

        return !code.equals(200);
    }
}
